<?php
class UserWeiboCommentDelAction extends UserAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'json';
	}
	
	public function execute()
	{
		$this->code 	= 0;
		$id 			= (int)$this->context->post('id');
		if (!$id)
		{
			$this->code 	= 101;
			return;
		}
		$weiboCommentService	= new WeiboCommentService();
		if ($weiboCommentService->delComment($id))
		{
			$this->code = 200;
		}
		
	}
}
